package com.yiquan.comment.feign;

import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("yiquan-video")
public interface VideoClient {

    @PutMapping("/video/modifyVideoComment")
    public Result modifyVideoCommentByVideoId(@RequestParam Long videoId, @RequestParam Integer modify);

    /**
     * 根据video_id查询
     * @param videoId ID
     * @return
     */
    @RequestMapping(value="/video/getVideoByVideoId",method= RequestMethod.GET)
    public Result findByVideoId(@RequestParam Long videoId);

}
